package com.billjc.activity.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class DataUtil {
	public static boolean isFormatter = true;

	public static boolean isIgnore = false;
	public static final String defaultEncoding = "UTF-8";
	public static String encoding = "UTF-8";

	public static int scale = 2;

	public static int roundHalfUp = 4;

	public static final DateFormat df = new SimpleDateFormat("yyyy-MM-dd");

	public static final DateFormat dtf = new SimpleDateFormat(
			"yyyy-MM-dd HH:mm:ss");

	public static String defaultString = "";

	public static String getDefaultString() {
		return defaultString;
	}

	public static void setDefaultString(String defaultString) {
		defaultString = defaultString;
	}

	public static String getEncoding() {
		return encoding;
	}

	public static void setEncoding(String encoding) {
		encoding = encoding;
	}

	public static int getScale() {
		return scale;
	}

	public static void setScale(int scale) {
		scale = scale;
	}

	public static int getRoundHalfUp() {
		return roundHalfUp;
	}

	public static void setRoundHalfUp(int roundHalfUp) {
		roundHalfUp = roundHalfUp;
	}

	public static boolean isFormatter() {
		return isFormatter;
	}

	public static void setFormatter(boolean isFormatter) {
		isFormatter = isFormatter;
	}

	public static boolean isIgnore() {
		return isIgnore;
	}

	public static void setIgnore(boolean isIgnore) {
		isIgnore = isIgnore;
	}
}
